package com.terrace.db.system.dao;

import java.util.List;

import com.terrace.db.system.mapper.entity.Role;

public interface RoleDao {
	
	public int saveRole(Role role);
	
	public int saveRoleSelective(Role role);
	
	public int deleteByRoleId(String id);

	public int updateByRoleIdSelective(Role role);
	
	public int updateByRoleId(Role role);
	
	/**
	 * 根据条件查询角色列表
	 * @param role
	 * @return
	 */
	public List<Role> selectRolesBySelective(Role role);
	
	public Role selectByRoleId(String id);
	
	public List<Role> selectRoleByUserId(String userId);
	
}